package com.tianjin.design.chainofresponsibility;

/**
 * @Description: 抽象领导类
 */
public abstract class LeaderHandler {

    // 领导的上级领导
    protected LeaderHandler leaderHandler;

    public LeaderHandler getLeaderHandler() {
        return leaderHandler;
    }

    public void setLeaderHandler(LeaderHandler leaderHandler) {
        this.leaderHandler = leaderHandler;
    }

    // 为领导设置上级领导
    public void setSuperLeader(LeaderHandler leaderHandler){
        this.leaderHandler = leaderHandler;
    }

    // 领导需要进行审批，处理请求
    public abstract void handler(Request request);
}
